<?php
$cf_user_pmenu = array(
    '0' => '',
    '1' => '资金管理',
    '2' => '交易管理',
    '3' => '收藏夹',
    '4' => '推广邀请',
	'5' => '我的分享',
	'6' => '关注题目',
);
$user_menu = array(
    'index' => array('pid' => '0', 'title' => '我的信息', 'url' => 'user/index.htm'),
	'addr' => array('pid' => '0', 'title' => '收货地址', 'url' => 'user/addr.htm'),
    'fund' => array('pid' => '1', 'title' => '收支明细', 'url' => 'user/fund.htm'),
	'rebate' => array('pid' => '1', 'title' => '代理返利', 'url' => 'user/rebate.htm'),
	'withdraw' => array('pid' => '1', 'title' => '资金提现', 'url' => 'user/withdraw.htm'),
   // 'order_ad' => array('pid' => '2', 'title' => '广告商品咨询', 'url' => 'user/order_ad.htm'),
	//'order_coupon' => array('pid' => '2', 'title' => '优惠券使用', 'url' => 'user/order_coupon.htm'),
	'group_order' => array('pid' => '2', 'title' => '团购使用', 'url' => 'user/group_order.htm'),
	'order_exchange' => array('pid' => '2', 'title' => '商品兑换', 'url' => 'user/order_exchange.htm'),
	'purchase' => array('pid' => '2', 'title' => '我要购买', 'url' => 'user/purchase.htm'),
   // 'favorite' => array('pid' => '3', 'title' => '兑换商品收藏', 'url' => 'user/favorite.htm'),
	'invite' => array('pid' => '4', 'title' => '注册邀请', 'url' => 'user/invite.htm'),
	'channel' => array('pid' => '4', 'title' => '推广安装包', 'url' => 'user/channel.htm'),
	
	//'sp_promote' => array('pid' => '4', 'title' => '商户推广', 'url' => 'user/sp_promote.htm'),
	'music' => array('pid' => '5', 'title' => '我的音乐', 'url' => 'user/music.htm'),
	'video' => array('pid' => '5', 'title' => '我的视频', 'url' => 'user/video.htm'),
	'video_comment' => array('pid' => '5', 'title' => '视频赞助', 'url' => 'user/video_comment.htm'),
	'question' => array('pid' => '6', 'title' => '我的题目', 'url' => 'user/question.htm'),
);

$cf_user_nav = '';
if ($user_menu[$cf_controller]) {
    $user_menu[$cf_controller]['on'] ='u-over';
	//$user_menu[$cf_controller]['url'] ="javascript:void(0)"; //当前不可点
    $pid = $user_menu[$cf_controller]['pid'];
    $cf_user_nav = $cf_user_pmenu[$pid] ?  $cf_user_pmenu[$pid].' - '.$user_menu[$cf_controller]['title'] : $user_menu[$cf_controller]['title'];
}

foreach ($user_menu as $k=>$v){
    $pid = $v['pid'];
    $cf_user_menu[$pid]['title'] = $cf_user_pmenu[$pid];
    $cf_user_menu[$pid]['list'][] = $v;
}

//echo $cf_user_nav.'<br>';
//dump($cf_user_menu);

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
